﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CronogramaPagoGrid.ascx.cs" 
Inherits="UILGestion.ObraAdmin.CronogramaPago.CronogramaPagoGrid" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<input id="idParent" type="hidden"  runat="server"/>
<input id="idRendicion" type="hidden"  runat="server"/>
<input id="idEstado" type="hidden"  runat="server"/>

<asp:GridView ID="itemGridView" runat="server" 
                              AutoGenerateColumns="False" 
                              CellPadding="4" DataKeyNames="idInternal"  
                              SkinID="GridView"
                              ShowFooter="true">
                              <Columns>
                                  <asp:TemplateField  HeaderStyle-Width="325px">
                                      <ItemTemplate>
                                       <asp:Label ID="hastaLBL" runat="server" Text='<%# Eval("hastaStr")%>'></asp:Label>
                                       </ItemTemplate>
                                       <EditItemTemplate>
                                       
                                     </EditItemTemplate>
                                      <FooterTemplate>
                                          
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>

                                  <asp:TemplateField  HeaderStyle-Width="125px">
                                      <ItemTemplate>
                                          <asp:Label ID="fechaIniciolbl" runat="server" Text='<%# Eval("fechaInicioStr")%>'></asp:Label>
                                       </ItemTemplate>
                                       <EditItemTemplate>
                                           <asp:TextBox ID="fechaInicioTxt" runat="server" Text='<%# Eval("fechaInicioStr")%>' Width="95px" />
                                           <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaInicioTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </EditItemTemplate>
                                      <FooterTemplate>
                                          <asp:TextBox ID="fechaInicioTxt" runat="server"  Width="90px" />
                                          <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaInicioTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>


                                  <asp:TemplateField  HeaderStyle-Width="325px">
                                      <ItemTemplate>
                                       <asp:Label ID="hastaLBL" runat="server" Text='<%# Eval("hastaStr")%>'></asp:Label>
                                       </ItemTemplate>
                                       <EditItemTemplate>
                                       
                                     </EditItemTemplate>
                                      <FooterTemplate>
                                          
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>
                                
                                <asp:TemplateField  HeaderStyle-Width="125px">
                                      <ItemTemplate>
                                          <asp:Label ID="fechaFinlbl" runat="server" Text='<%# Eval("fechaFinStr")%>'></asp:Label>
                                       </ItemTemplate>
                                       <EditItemTemplate>
                                           <asp:TextBox ID="fechaFinTxt" runat="server" Text='<%# Eval("fechaFinStr")%>' Width="95px" />
                                           <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaFinTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </EditItemTemplate>
                                      <FooterTemplate>
                                          <asp:TextBox ID="fechaFinTxt" runat="server"  Width="90px" />
                                          <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaFinTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </FooterTemplate>
                              
                              </asp:TemplateField>
                              


                               <asp:CommandField ButtonType="Image" 
                         CancelImageUrl="~/Images/cancel.gif" EditImageUrl="~/Images/edit.gif" 
                         ShowEditButton="true" UpdateImageUrl="~/Images/update.gif" />

                                  <asp:TemplateField>
                                      <ItemTemplate>

                                        
                                          <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                                              CommandArgument='<%# Eval("idInternal")%>' ImageUrl="~/Images/delete.gif" 
                                              OnClick="DeleteItem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                                       </ItemTemplate>
                                      <FooterTemplate>

                                       
                                          <asp:Button ID="btnAdd" runat="server"   OnClick="AddItem" 
                                              Text="Añadir" />
                                        
                                      </FooterTemplate>
                                  </asp:TemplateField>
                              </Columns>
                              </asp:GridView>
